<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	//String userName = request.getSession().getAttribute("userName").toString();
	//String json  = request.getSession().getAttribute("JSON").toString();
	//String userId = request.getSession().getAttribute("userId").toString();
	//String allMenus = request.getSession().getAttribute("allMenus").toString();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href = <%=basePath %>/>
	<meta charset="UTF-8">
	<title>左侧菜单</title>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/style.css"/>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/left.css"/>
</head>
	<body>
		<div class="wrap">
	        <div id="tree" class="scroll_style">
	         	<a name="" id="" href="<%=basePath %>inOutStockRecordQuery/toMainJsp" target="welcomeFrame" class="level">出入库记录查询</a>    
	            <a name="" id="" href="<%=basePath %>materialBaseInfo/toMaterialBaseInfoJsp" target="welcomeFrame" class="level">物料信息管理</a>
				<a name="" id="" href="<%=basePath %>storeManagement/toStoreManagementJsp" target="welcomeFrame" class="level">仓库管理</a>
				<a name="" id="" href="<%=basePath %>stockRecordQuery/toStockQueryJsp" target="welcomeFrame" class="level">库存查询</a>
				<a name="" id="" href="<%=basePath %>deviceManagement/toDeviceJsp" target="welcomeFrame" class="level">设备管理</a>
	        </div>
		</div>
	</body>
	
	<script src="<%=basePath %>js/3rd/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<%=basePath %>js/common/common.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		<%-- var data = eval(<%=json%>);
		var userId = <%=userId%>
		var allMenus = eval(<%=allMenus%>);
		var v = 0;
		if(data[0].listMenus.length!=0){
			v=0;
		}else if(data[1].listMenus.length!=0){
			v=1;
		}else if(data[2].listMenus.length!=0){
			v=2;
		}else{
			v = 4;
		}
		if(v!=4){
			modelMenu({
				"menuId" : data[v].menuId,
				"userId" : userId,
				"firstMenu" : data[v].listMenus[0].listMenus[0].menuId
			},allMenus);
		} --%>
	
	</script>
</html>